<template>
  <div class="app">
    <h3>{{ welcomeStr }}</h3>
    <button @click="showLog">测试</button>
    <Person ref="ren" />
  </div>
</template>

<script lang="ts" setup name="App">
import Person from './components/person.vue'
import {ref} from 'vue'
let welcomeStr = 'hello 吊毛'
let ren = ref()
const showLog = () => {
  Object.keys(ren.value).forEach(k=>console.log(ren.value[k]))
  // console.log(ren.value,typeof(ren.value))
}
</script>

<style scoped>

</style>